Skip to main content
Version: 3.x.x

FetchSendActionsType


import { FetchSendActionsType } from "@hyper-fetch/core"

Description

Defined in request/request.types.ts:263

Preview

type FetchSendActionsType<Request> = {
onDownloadProgress: (values: ProgressType, details: RequestEventType<Request>) => void;
onRemove: (details: RequestEventType<Request>) => void;
onRequestStart: (details: RequestEventType<Request>) => void;
onResponse: (response: ResponseReturnType<ExtractResponseType<Request>, ExtractErrorType<Request>, ExtractAdapterType<Request>>, details: ResponseDetailsType) => void;
onResponseStart: (details: RequestEventType<Request>) => void;
onSettle: (requestId: string, request: Request) => void;
onUploadProgress: (values: ProgressType, details: RequestEventType<Request>) => void;
}

Structure

{
onDownloadProgress: (values: ProgressType, details: RequestEventType<Request>) => void;
onRemove: (details: RequestEventType<Request>) => void;
onRequestStart: (details: RequestEventType<Request>) => void;
onResponse: (response: ResponseReturnType<ExtractResponseType<Request>, ExtractErrorType<Request>, ExtractAdapterType<Request>>, details: ResponseDetailsType) => void;
onResponseStart: (details: RequestEventType<Request>) => void;
onSettle: (requestId: string, request: Request) => void;
onUploadProgress: (values: ProgressType, details: RequestEventType<Request>) => void;
}